package com.dachuang.canjiren.mapper;

import com.dachuang.canjiren.entity.Comment;
import com.dachuang.canjiren.entity.Law;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dachuang.canjiren.entity.Volunteer;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2020-07-27
 */
@Repository
public interface LawMapper extends BaseMapper<Law> {

    /**
     * 添加法律咨询
     * @param law
     * @return
     */
    int insertLaw(Law law);

    /**
     * 根据id查询内容
     * @param id
     * @return
     */
    Law selectLaw(Integer id);
    /**
     * 法律咨询展示
     * @return
     */
    List<Law> selectLawList();
}
